<?php

namespace App\Datalog\Users;

use App\Datalog\LaravelDatalogBase;

class UserSet extends LaravelDatalogBase
{
    // 日志名称
    protected $name = 'user';

    // 数据存放位置
    protected $logPath = 'datalogs/users';

    // 数据格式化方式
    protected $formatter = 'context';

    protected $maxSaveDay = 30;

    public function setVal($user_id, $create_time, $params)
    {
        $params['#user_id'] = $user_id;
        $params['#update_time'] = $create_time;

        $this->log($params);
    }
}
